import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';
import 'package:home_box/pages/home/home.dart';
import 'package:home_box/pages/medicine/MedicineV/add_medicine.dart';

void main() {
  // 设置状态栏颜色和图标样式
  SystemChrome.setSystemUIOverlayStyle(
    SystemUiOverlayStyle(
      statusBarColor: Colors.blue, // 状态栏背景色
      statusBarIconBrightness: Brightness.light, // 状态栏图标颜色
    ),
  );
  runApp(const HomeBoxMain());
}

class HomeBoxMain extends StatelessWidget {
  const HomeBoxMain({super.key});

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      ///移除右上角“Debug”角标
      debugShowCheckedModeBanner: false,
      theme: ThemeData(bottomNavigationBarTheme: BottomNavigationBarThemeData(unselectedLabelStyle: TextStyle(fontSize: 10),selectedLabelStyle: TextStyle(fontSize: 10))),
      home: Home(),
      initialRoute: '/',
      getPages: [
        GetPage(name: '/', page: ()=>Home()),
        GetPage(name: '/addMedicine', page: ()=>AddMedicine())
      ],
    );
  }
}
